home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 15 / CU Amiga Magazine's Super CD-ROM 15 (1997)(EMAP Images)(GB)[!][issue 1997-10].iso / CUCD / Graphics / Ghostscript / source / gcc-head.mak.in < prev    next >
Encoding:
Text File  |  1997-07-05  |  10.5 KB  |  316 lines

  1. #    Copyright (C) 1989, 1995, 1996, 1997 Aladdin Enterprises.  All rights reserved.
  2. # This file is part of Aladdin Ghostscript.
  3. # Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author
  4. # or distributor accepts any responsibility for the consequences of using it,
  5. # or for whether it serves any particular purpose or works at all, unless he
  6. # or she says so in writing.  Refer to the Aladdin Ghostscript Free Public
  7. # License (the "License") for full details.
  8. # Every copy of Aladdin Ghostscript must include a copy of the License,
  9. # normally in a plain ASCII text file named PUBLIC.  The License grants you
  10. # the right to copy, modify and redistribute Aladdin Ghostscript, but only
  11. # under certain conditions described in the License.  Among other things, the
  12. # License requires that the copyright notice and this notice be preserved on
  13. # all copies.
  14.  
  15. #### Start of system configuration section. ####
  16.  
  17. VPATH = @srcdir@
  18. srcdir = @srcdir@
  19.  
  20. # Common prefix for machine-independent installed files.
  21. # prefix = ade: because GS is a Libnix client! && is put on Fish-site
  22. # prefix = /ade when GS is compiled using ixemul.library!
  23. # prefix = ghostscript: because GS uses Libnix and is put on Aminet
  24. #          most end users don't have 'ade:'
  25. # prefix = Ghostscript:
  26. prefix = @prefix@
  27. # Common prefix for machine-dependent installed files.
  28. exec_prefix = $(prefix)
  29.  
  30. # Directory to install executables in.
  31. bindir = $(exec_prefix)
  32. # Directory to install libraries in.
  33. libdir = $(exec_prefix)lib
  34. # Directory to install the Info files in.
  35. infodir = $(prefix)info
  36. # Directory to install script files in.
  37. scriptdir = $(bindir)batch
  38. # Directory to install the man page in.
  39. mandir = $(prefix)man
  40. man1ext = 1
  41. man1dir = $(mandir)/man$(man1ext)
  42. # Number to put on the man page filename.
  43. manext = 1
  44.  
  45. datadir = $(prefix)data
  46. gsdir = $(datadir)
  47. gsdatadir = $(gsdir)
  48.  
  49. docdir=$(prefix)doc
  50. exdir=$(prefix)examples
  51. GS_DOCDIR=$(docdir)
  52.  
  53. # Program to install executables.
  54. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  55. # Program to install data like man pages.
  56. INSTALL_DATA = @INSTALL_DATA@
  57. # Generic install program.
  58. INSTALL = @INSTALL@
  59.  
  60. CC = @CC@
  61. # Use this verion if you compile for Libnix, else the current one
  62. DEFS = @DEFS@ $(FPU_FLAG) $(CPU_FLAG)
  63. #DEFS = @DEFS@ $(FPU_FLAG) $(CPU_FLAG) -DIXEMUL
  64.  
  65. # Do a 'setenv="-noixemul"' before running 'configure' !
  66. # if one wants the libnix version  of GS
  67. # configure will add it to the other LDFLAGS
  68. LIBS = @LIBS@
  69.  
  70.  
  71. # Define the default directory/ies for the runtime
  72. # initialization and font files.  Separate multiple directories with a :.
  73.  
  74. GS_LIB_DEFAULT=$(gsdatadir),$(prefix)fonts
  75.  
  76. # Define whether or not searching for initialization files should always
  77. # look in the current directory first.  This leads to well-known security
  78. # and confusion problems, but users insist on it.
  79. # NOTE: this also affects searching for files named on the command line:
  80. # see the "File searching" section of use.txt for full details.
  81. # Because of this, setting SEARCH_HERE_FIRST to 0 is not recommended.
  82.  
  83. SEARCH_HERE_FIRST=1
  84.  
  85. # Define the name of the interpreter initialization file.
  86. # (There is no reason to change this.)
  87.  
  88. GS_INIT=gs_init.ps
  89.  
  90. # Choose generic configuration options.
  91.  
  92. # -DDEBUG
  93. #    includes debugging features (-Z switch) in the code.
  94. #      Code runs substantially slower even if no debugging switches
  95. #      are set.
  96. # -DNOPRIVATE
  97. #    makes private (static) procedures and variables public,
  98. #      so they are visible to the debugger and profiler.
  99. #      No execution time or space penalty.
  100.  
  101. #GENOPT=-DDEBUG
  102. GENOPT=
  103.  
  104. # Define the name of the executable file.
  105.  
  106. GS=gs_$(GS_VERSION)
  107.  
  108. # Define the directory where the IJG JPEG library sources are stored,
  109. # and the major version of the library that is stored there.
  110. # You may need to change this if the IJG library version changes.
  111. # See jpeg.mak for more information.
  112.  
  113. JSRCDIR=$(srcdir)/jpeg-6a
  114. JVERSION=6
  115.  
  116. # Define the directory where the PNG library sources are stored,
  117. # and the version of the library that is stored there.
  118. # You may need to change this if the libpng version changes.
  119. # See libpng.mak for more information.
  120.  
  121. PSRCDIR=$(srcdir)/libpng
  122. PVERSION=96
  123.  
  124. # Choose whether to use a shared version of the PNG library, and if so,
  125. # what its name is.
  126. # See gs.mak and make.txt for more information.
  127.  
  128. SHARE_LIBPNG=0
  129. LIBPNG_NAME=png
  130.  
  131. # Define the directory where the zlib sources are stored.
  132. # See zlib.mak for more information.
  133.  
  134. ZSRCDIR=$(srcdir)/zlib
  135.  
  136. # Choose whether to use a shared version of the zlib library, and if so,
  137. # what its name is (usually libz, but sometimes libgz).
  138. # See gs.mak and make.txt for more information.
  139.  
  140. SHARE_ZLIB=0
  141. #ZLIB_NAME=gz
  142. ZLIB_NAME=z
  143.  
  144. # Define how to build the library archives.  (These are not used in any
  145. # standard configuration.)
  146.  
  147. AR=@AR@
  148. ARFLAGS=qc
  149. RANLIB=@RANLIB@
  150.  
  151. # Define the configuration ID.  Read gs.mak carefully before changing this.
  152.  
  153. CONFIG=
  154.  
  155. # ------ Platform-specific options ------ #
  156.  
  157. # Define the name of the C compiler.
  158. # JOOP: done in configure script
  159. #CC=gcc
  160.  
  161. # Define the name of the linker for the final link step.
  162. # Normally this is the same as the C compiler.
  163.  
  164. CCLD=$(CC)
  165.  
  166. # Define the default gcc flags.
  167. # To work around the gcc 2.7.x optimizer bug,
  168. # add -Dconst= and remove -Wcast-qual and -Wwrite-strings.
  169.  
  170. #GCFLAGS=-Wall -Wcast-qual -Wpointer-arith -Wstrict-prototypes -Wwrite-strings
  171. GCFLAGS=-Wall -Wpointer-arith -Wstrict-prototypes
  172.  
  173. # Define the other compilation flags.  Add at most one of the following:
  174. #    -DBSD4_2 for 4.2bsd systems.
  175. #    -DSYSV for System V or DG/UX.
  176. #     -DSYSV -D__SVR3 for SCO ODT, ISC Unix 2.2 or before,
  177. #       or any System III Unix, or System V release 3-or-older Unix.
  178. #    -DSVR4 -DSVR4_0 (not -DSYSV) for System V release 4.0.
  179. #    -DSVR4 (not -DSYSV) for System V release 4.2 (or later) and Solaris 2.
  180. # XCFLAGS can be set from the command line.
  181. # We don't include -ansi, because this gets in the way of the platform-
  182. #   specific stuff that <math.h> typically needs; nevertheless, we expect
  183. #   gcc to accept ANSI-style function prototypes and function definitions.
  184. XCFLAGS=
  185.  
  186. #CFLAGS=-O $(GCFLAGS) $(XCFLAGS)
  187.  
  188. # - Make sure that the version string of gdevamiga.c is correctly included
  189. # for that to happen you need to modify the specs file or hand define
  190. # cpu options (-m68030 -DMC68030 -m68881 -DMC68881 etc)
  191. CFLAGS=@CFLAGS@ $(GCFLAGS) $(XCFLAGS)
  192.  
  193. # Define platform flags for ld.
  194. # SunOS 4.n may need -Bstatic.
  195. # XLDFLAGS can be set from the command line.
  196. XLDFLAGS=
  197.  
  198. LDFLAGS=@LDFLAGS@ $(XLDFLAGS)
  199.  
  200. # Define any extra libraries to link into the executable.
  201. # ISC Unix 2.2 wants -linet.
  202. # SCO Unix needs -lsocket if you aren't including the X11 driver.
  203. # SVR4 may need -lnsl.
  204. # (Libraries required by individual drivers are handled automatically.)
  205.  
  206. EXTRALIBS=
  207.  
  208. # Define the include switch(es) for the X11 header files.
  209. # This can be null if handled in some other way (e.g., the files are
  210. # in /usr/include, or the directory is supplied by an environment variable);
  211. # in particular, SCO Xenix, Unix, and ODT just want
  212. #XINCLUDE=
  213. # Note that x_.h expects to find the header files in $(XINCLUDE)/X11,
  214. # not in $(XINCLUDE).
  215.  
  216. XINCLUDE=-I/usr/X11R6.1/include
  217.  
  218. # Define the directory/ies and library names for the X11 library files.
  219. # XLIBDIRS is for ld and should include -L; XLIBDIR is for LD_RUN_PATH
  220. # (dynamic libraries on SVR4) and should not include -L.
  221. # Both can be null if these files are in the default linker search path;
  222. # in particular, SCO Xenix, Unix, and ODT just want
  223. #XLIBDIRS=
  224. # X11R6 (on any platform) may need
  225. #XLIBS=Xt SM ICE Xext X11
  226.  
  227. #XLIBDIRS=-L/usr/local/X/lib
  228. XLIBDIRS=-L/usr/X11R6.1/lib
  229. XLIBDIR=
  230. XLIBS=Xt Xext X11
  231.  
  232. # Define whether this platform has floating point hardware:
  233. #    FPU_TYPE=2 means floating point is faster than fixed point.
  234. # (This is the case on some RISCs with multiple instruction dispatch.)
  235. #    FPU_TYPE=1 means floating point is at worst only slightly slower
  236. # than fixed point.
  237. #    FPU_TYPE=0 means that floating point may be considerably slower.
  238. #    FPU_TYPE=-1 means that floating point is always much slower than
  239. # fixed point.
  240.  
  241. FPU_TYPE=1
  242.  
  243. # ------ Devices and features ------ #
  244.  
  245. # Choose the language feature(s) to include.  See gs.mak for details.
  246.  
  247. FEATURE_DEVS=level2.dev pdf.dev pipe.dev
  248.  
  249. # Choose whether to compile the .ps initialization files into the executable.
  250. # See gs.mak for details.
  251.  
  252. COMPILE_INITS=0
  253.  
  254. # Choose whether to store band lists on files or in memory.
  255. # The choices are 'file' or 'memory'.
  256.  
  257. BAND_LIST_STORAGE=file
  258.  
  259. # Choose which compression method to use when storing band lists in memory.
  260. # The choices are 'lzw' or 'zlib'.  lzw is not recommended, because the
  261. # LZW-compatible code in Ghostscript doesn't actually compress its input.
  262.  
  263. BAND_LIST_COMPRESSOR=zlib
  264.  
  265. # Choose the implementation of file I/O: 'stdio', 'fd', or 'both'.
  266. # See gs.mak and sfxfd.c for more details.
  267.  
  268. FILE_IMPLEMENTATION=stdio
  269.  
  270. # Choose the device(s) to include.  See devs.mak for details.
  271. # JOOP: currently only the Amiga driver and PNG are active. 
  272. #       If you want more/other devices active then remove '#' and recompile.
  273. DEVICE_DEVS=amiga.dev amiga_printer.dev amiga_ilbm.dev amiga_custom.dev
  274. DEVICE_DEVS1=epson.dev eps9mid.dev eps9high.dev st800.dev stcolor.dev
  275. DEVICE_DEVS2=deskjet.dev djet500.dev laserjet.dev ljetplus.dev ljet2p.dev ljet3.dev ljet4.dev
  276. DEVICE_DEVS3=cdeskjet.dev cdjcolor.dev cdjmono.dev cdj550.dev pj.dev pjxl.dev pjxl300.dev
  277. DEVICE_DEVS4=uniprint.dev
  278. DEVICE_DEVS5=bj10e.dev bj200.dev bjc600.dev bjc800.dev
  279. DEVICE_DEVS6=faxg3.dev faxg32d.dev faxg4.dev
  280. DEVICE_DEVS7=pcxmono.dev pcxgray.dev pcx16.dev pcx256.dev pcx24b.dev pcxcmyk.dev
  281. DEVICE_DEVS8=pbm.dev pbmraw.dev pgm.dev pgmraw.dev pgnm.dev pgnmraw.dev pnm.dev pnmraw.dev ppm.dev ppmraw.dev
  282. DEVICE_DEVS9=tiffcrle.dev tiffg3.dev tiffg32d.dev tiffg4.dev tifflzw.dev tiffpack.dev
  283. DEVICE_DEVS10=tiff12nc.dev tiff24nc.dev
  284. DEVICE_DEVS11=bmpmono.dev bmp16.dev bmp256.dev bmp16m.dev
  285. DEVICE_DEVS12=psmono.dev psgray.dev bit.dev bitrgb.dev bitcmyk.dev
  286. DEVICE_DEVS13=pngmono.dev pnggray.dev png16.dev png256.dev png16m.dev
  287. DEVICE_DEVS14=jpeg.dev jpeggray.dev
  288. DEVICE_DEVS15=pdfwrite.dev pswrite.dev epswrite.dev pxlmono.dev pxlcolor.dev
  289.  
  290. # ---------------------------- End of options --------------------------- #
  291.  
  292. # Define the name of the partial makefile that specifies options --
  293. # used in dependencies.
  294.  
  295. MAKEFILE=gcc-head.mak
  296.  
  297. # Define the ANSI-to-K&R dependency.  (gcc accepts ANSI syntax.)
  298.  
  299. AK=
  300.  
  301. # Define the compilation rules and flags.
  302.  
  303. CCC=$(CC) $(CCFLAGS) -c
  304. CCAUX=$(CC)
  305. #We can't use -fomit-frame-pointer with -pg....
  306. #CCLEAF=$(CCC)
  307. CCLEAF=$(CCC) -fomit-frame-pointer
  308.  
  309. # --------------------------- Generic makefile ---------------------------- #
  310.  
  311. # The remainder of the makefile (unixhead.mak, gs.mak, devs.mak, unixtail.mak)
  312. # is generic.  tar_cat concatenates all these together.
  313.